Skip to content

test(hub): a closed port stays bound, so no other process answers on it - #342

Merged
7schmiede merged 2 commits into
mainfrom
test/hub-closed-port
Oct 28, 2026
Merged

7schmiede merged 2 commits into
mainfrom
test/hub-closed-port

Conversation

@7schmiede

@7schmiede 7schmiede commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

no_daemon_is_a_503_and_a_start_under_way_says_so failed once on macOS (release PR #341). The test bound its "closed" port and let it go at once, and another test's listener got that port a moment later, so the test saw 502 instead of 503. closed() is now port 1, a privileged port that no test and no unprivileged process can listen on, so a connect to it is refused. The first attempt was a socket bound but not listening. That timed out on macOS instead of being refused.

Test only; cargo test -p devstack-hub --lib daemon_send passes here (Windows).

🤖 Generated with Claude Code

7schmiede and others added 2 commits October 28, 2026 01:33
Seen on macOS: no_daemon_is_a_503_and_a_start_under_way_says_so got a 502
from whatever took the port the test had let go of.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nlistened one time out

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@7schmiede
7schmiede merged commit 60c36f1 into main Oct 28, 2026
13 checks passed
@7schmiede
7schmiede deleted the test/hub-closed-port branch October 28, 2026 00:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant